import service from '@/utils/request'

export const createAdsFld = (data) => {
  return service({
    url: '/adsFld/createAdsFld',
    method: 'post',
    data
  })
}

export const deleteAdsFld = (data) => {
  return service({
    url: '/adsFld/deleteAdsFld',
    method: 'delete',
    data
  })
}

export const deleteAdsFldByIds = (data) => {
  return service({
    url: '/adsFld/deleteAdsFldByIds',
    method: 'delete',
    data
  })
}

export const updateAdsFld = (data) => {
  return service({
    url: '/adsFld/updateAdsFld',
    method: 'put',
    data
  })
}

export const findAdsFld = (params) => {
  return service({
    url: '/adsFld/findAdsFld',
    method: 'get',
    params
  })
}

export const getAdsFldList = (params) => {
  return service({
    url: '/adsFld/getAdsFldList',
    method: 'get',
    params
  })
}

export const getAllAdsFlds = (params) => {
  return service({
    url: '/adsFld/getAllAdsFlds',
    method: 'get',
    params
  })
}

export const getAdsFld = (data) => {
  return service({
    url: '/adsFld/getAdsFld',
    method: 'post',
    data
  })
}
